<%--
  Created by IntelliJ IDEA.
  User: ZJH
  Date: 2025/6/10
  Time: 12:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8"%>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>留言板登录</title>

</head>
<body>
<div class="login-container">
    <div class="login-header">
        <h1>欢迎回来</h1>
        <p>请登录您的账户</p>
    </div>

    <form class="login-form" action="/user/login" method="post">
        <div class="form-group">
            <label for="username">用户名</label>
            <input type="text" name="permissionname" id="username" class="form-control" placeholder="请输入用户名" required>
        </div>

        <div class="form-group">
            <label for="password">密码</label>
            <input type="password" name="password" id="password" class="form-control" placeholder="请输入密码" required>
        </div>
        <button type="submit" class="login-btn">登 录</button>
    </form>
</div>
</body>
</html>

<style>
    /* 全局重置与基础样式 */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    }

    body {
        background-color: #f5f7fa;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 20px;
        background-image: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    }

    /* 登录卡片容器 */
    .login-container {
        width: 100%;
        max-width: 420px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .login-container:hover {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }

    /* 登录头部 */
    .login-header {
        background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
        color: white;
        padding: 30px 20px;
        text-align: center;
    }

    .login-header h1 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 8px;
    }

    .login-header p {
        font-size: 14px;
        opacity: 0.9;
    }

    /* 登录表单 */
    .login-form {
        padding: 30px;
    }

    .form-group {
        margin-bottom: 20px;
        position: relative;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-size: 14px;
        color: #555;
        font-weight: 500;
    }

    .form-control {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 15px;
        transition: all 0.3s;
    }

    .form-control:focus {
        border-color: #3a7bd5;
        box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
        outline: none;
    }
    .remember-me input {
        margin-right: 8px;
    }

    .forgot-password a {
        color: #3a7bd5;
        text-decoration: none;
    }

    .forgot-password a:hover {
        text-decoration: underline;
    }

    /* 登录按钮 */
    .login-btn {
        width: 100%;
        padding: 14px;
        background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
        border: none;
        border-radius: 6px;
        color: white;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s;
    }

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(58, 123, 213, 0.3);
    }

    .login-btn:active {
        transform: translateY(0);
    }

    .login-footer a {
        color: #3a7bd5;
        text-decoration: none;
        margin: 0 5px;
    }

    .login-footer a:hover {
        text-decoration: underline;
    }

    /* 响应式调整 */
    @media (max-width: 480px) {
        .login-container {
            border-radius: 0;
        }

        .login-header, .login-form {
            padding: 25px 15px;
        }
    }
</style>
